package com.bicon.botu.mall.component.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author 李双喜
 * @Date 2017/8/3 12:44
 */
@Data
@TableName("browsing_history")
public class BrowsingHistory extends Model implements Cloneable  {
    /**
     * 主键
     */
    private String id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 浏览类型
     */
    private String type;

    /**
     * 浏览时间
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
